package cn.wit.test;

/**
 * 随机获取形状
 * 
 * @author 16604
 *
 */
public class RandomShape {
	
	
	public static int[][] returnShap(){
		int[][] a = null;
		
		int nums = (int) (Math.random() * 7 + 1);		//取1~7的整数
			
		GeometricShape geometricShape = new GeometricShape();
		
		switch(nums) {
		
		case 1:
			a= geometricShape.getMountain();
			break;
		case 2:
			a= geometricShape.getLeftHanging();
			break;
		case 3:
			a= geometricShape.getLeftLying();
			break;
		case 4:
			a= geometricShape.getRightHanging();
			break;
		case 5:
			a= geometricShape.getStrip();
			break;
		case 6:
			a= geometricShape.getRightLying();
			break;
		case 7:
			a= geometricShape.getTian();
			break;
		}
		return a;
		
	}
}
